﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Frogism.Data {
  [Serializable] 
  public class FrogismDataException : Exception, ISerializable {
    public FrogismDataException() {
    }
    public FrogismDataException(String message, Exception exception)
    :base(message,exception)
    {
    }
    public FrogismDataException(string columnName, string exceptionMessage)
      : base("Error in Frogism data converting column {" + columnName + "} " + exceptionMessage) {

    }
  }
  [Serializable] 
  public class FrogismConfigurationException : Exception, ISerializable {
    public FrogismConfigurationException() {
    }
    public FrogismConfigurationException(String message, Exception exception)
    :base(message,exception)
    {
    }
    public FrogismConfigurationException(String message)
    :base("Frogism ConnectionString not found in application settings file with name \"" + message + "\".")
    {

    }
  }
}
